package com.zelix;

import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import java.util.EventObject;
import javax.swing.AbstractButton;
import javax.swing.text.JTextComponent;

final class up
        implements ItemListener {

    private final t2 a;

    up(t2 t2_1) {
        a = t2_1;
    }

    public void itemStateChanged(ItemEvent itemevent) {
        Object obj = itemevent.getSource();
        if (obj == a.r) {
            a.u.setEnabled(a.r.isSelected());
            a.v.setEnabled(a.r.isSelected());
            if (!a.r.isSelected()) {
                a.u.select(0, 0);
            }
        } else if (obj == a.s) {
            a.w.setEnabled(a.s.isSelected());
            a.x.setEnabled(a.s.isSelected());
            if (!a.s.isSelected())
                a.w.select(0, 0);
        }
    }
}